package com.itheima.redbaby.engine;

import java.util.List;
import java.util.Map;

import com.itheima.redbaby.bean.Logistics;
import com.itheima.redbaby.bean.Order;

public interface OrderEngine {
	
	/**
	 * 查询订单列表
	 * @return
	 */
	List<Order> getOrderList(int type);
	
	/** 
	 *  
	 * @param orderId
	 * @return
	 */
	boolean cancelOrder(String orderId);
	
	/**
	 * 物流查询
	 * @param orderId
	 * @return
	 */
	Logistics getLogistics(String orderId);
	
	/**
	 * 获取订单详情
	 * @param orderId
	 * @return
	 */
	Map<String,Object> getOrderDetail(String orderId);

}
